package com.videoStream.video.pojo;

import java.io.Serializable;

/**
 * @author xiao-yuan
 */
public class CameraPojo implements Serializable {
	private static final long serialVersionUID = 8183688502930584159L;
	/**
	 * 摄像头账号
	 */
	private String username;
	/**
	 * 摄像头密码
	 */
	private String password;
	/**
	 * 摄像头ip
	 */
	private String ip;
	/**
	 * 端口
	 */
	private short port;
	/**
	 * 摄像头通道
	 */
	private int channel;
	/**
	 * 摄像头码流
	 */
	private String stream;
	/**
	 * 设备类型
	 * 0：海康摄像头
	 * 1：海康硬盘录像机
	 */
	private int deviceType;
	/**
	 * 构建rtsp类型
	 * 0：系统构建
	 * 1：使用传入的rtsp
	 */
	private int buildRtspType;
	/**
	 * rtsp地址
	 */
	private String rtsp;
	/**
	 * rtmp地址
	 */
	private String rtmp;
	/**
	 * m3u8地址
	 */
	private String m3u8;
	/**
	 * m3u8文件格式模板地址
	 */
	private String m3u8FileTemplate;
	/**
	 * 播放地址
	 */
	private String url;
	/**
	 * 回放开始时间
	 */
	private String starttime;
	/**
	 * 回放结束时间
	 */
	private String endtime;
	/**
	 * 打开时间
	 */
	private String opentime;
	/**
	 * 使用人数
	 */
	private int count = 0;
	private String token;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getChannel() {
		return channel;
	}

	public void setChannel(int channel) {
		this.channel = channel;
	}

	public String getStream() {
		return stream;
	}

	public void setStream(String stream) {
		this.stream = stream;
	}

	public String getRtsp() {
		return rtsp;
	}

	public void setRtsp(String rtsp) {
		this.rtsp = rtsp;
	}

	public String getRtmp() {
		return rtmp;
	}

	public void setRtmp(String rtmp) {
		this.rtmp = rtmp;
	}

	public String getStarttime() {
		return starttime;
	}

	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}

	public String getEndtime() {
		return endtime;
	}

	public void setEndTime(String endtime) {
		this.endtime = endtime;
	}

	public String getOpentime() {
		return opentime;
	}

	public void setOpentime(String opentime) {
		this.opentime = opentime;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getM3u8() {
		return m3u8;
	}

	public void setM3u8(String m3u8) {
		this.m3u8 = m3u8;
	}

	public String getM3u8FileTemplate() {
		return m3u8FileTemplate;
	}

	public void setM3u8FileTemplate(String m3u8FileTemplate) {
		this.m3u8FileTemplate = m3u8FileTemplate;
	}

	public int getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(int deviceType) {
		this.deviceType = deviceType;
	}

	public int getBuildRtspType() {
		return buildRtspType;
	}

	public void setBuildRtspType(int buildRtspType) {
		this.buildRtspType = buildRtspType;
	}

	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}

	public short getPort() {
		return port;
	}

	public void setPort(short port) {
		this.port = port;
	}

	@Override
	public String toString() {
		return "CameraPojo [username=" + username + ", password=" + password + ", ip=" + ip + ", channel=" + channel
				+ ", stream=" + stream + ", rtsp=" + rtsp + ", rtmp=" + rtmp + ", url=" + url + ", starttime="
				+ starttime + ", endtime=" + endtime + ", opentime=" + opentime + ", count=" + count + ", token="
				+ token + "]";
	}

}
